home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
comm
/
bbs
/
ChkAmCD101.lha
/
ChkCD.doc
next >
Wrap
Text File
|
1996-09-07
|
3KB
|
99 lines
ChkCD.rexx
==============
This program is public domain & carries no warranty
Requirements: A device named CD0
rexxmast to be running
An aminet CD to check
The check will not work properly with the first Aminet CD, due to
there being no TREE file on this CD.
Bugfix: This release ensures that rexxsupport.library is loaded, which is
needed for the delete() function.
Purpose
--------
This program was written primarily for sysops of bulletin boards who carry
online CDs. It is quite usual to find that the published list of CD
directories - as shown in TREE - contains a number of directory names which
are not on the CD. They are in fact directories which are on aminet sites,
but no files from these dirs were included on the CD.
Additionally, it is not uncommon to find files listed in INDEX which were
not in fact included on the CD.
While such "extras" are not troublesome they can be an irritation to BBS
sysops, and to callers who select a directory only to find that it either
doesn't exist or is empty.
ChkCD produces a list of all missing or empty CD directories, and of
missing files. The list appears on your CLI window and can also be copied
to a file if you use the 'f' argument.
This arexx program has 2 phases:
1. It scans CD0:aminet/TREE, and checks that all directories
listed in TREE exist on the CD, and are not empty.
2. It scans CD0:aminet/INDEX, and checks that all directories
and files listed in INDEX do in fact exist.
Missing files or directories, and empty directories are reported on screen.
If argument 'f' is supplied, the report is also written to RAM:CDcheck.
e.g. rx ChkCD f
After the run, it is up to the user what he/she does with the report. On
my own BBS I carry the INDEX and TREE on my hard drive, and they are used
to control a CD acccess utility for callers. I delete from the directory
list on my hard drive any empty or missing directory names: and from the
index I remove missing filenames.
Usage
------
1. Load the Aminet CD in drive CD0:
2. From a shell window: rx ChkCD [f/?]
(argument f causes report to be copied to file ram:CDcheck)
(argument ? only displays purpose of program)
3. Results appear on your shell window, and also on a text file if
option f was used.
The program may be stopped at any time with Ctrl-C.
The future
----------
If there is a demand, I will consider rewriting this program in C for much
improved speed. But since aminet CDs only come out every 2 months, a
little time spent waiting for ChkCD to run is not a heavy penalty.
Bugs?
-------
Please report problems to me at Fidonet 2:2500/167.15
Or email me on gnome@martinac.demon.co.uk
But first check reported errors carefully. Here's an interesting one
from the 2nd Aminet CD:
File comm/fido/PFreq1_0_lha does not exist
...but surely that file DOES exist? No, not as named above. What does
exist is comm/fido/PFreq1_0.lha, so look closer at the .lha extension!
---------------------------------------------------------
Author: Gnome (John Marchant) Fidonet: 2:2500/167.15
Moonlight BBS, Bedford UK. +44 1234 212752
Open 6pm to 8am ONLY, including weekends.
Fax, netmail & Freq accepted during open hours.
Closed when sysop is away, or during lightning storms.